package com.shiyi.design.composite;

/**
 * @author wangzhanshuai
 * @date 2021/2/2 5:04 下午
 * @since 1.0
 */
public abstract class Node {

    protected String nodeName;

    public Node(String nodeName) {
        this.nodeName = nodeName;
    }

    public abstract void print();

    public abstract boolean isLeaf();
}
